package com.com.typhoon.service;

import com.com.typhoon.Util.Utils;
import com.com.typhoon.dao.UserDao;
import com.com.typhoon.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/23 下午2:16
 * @description
 * @modified by
 * @since V2.0.0
 */
@Service
public class UserService {

    private final String candidateChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

    private final String candidateNum = "0123456789";

    @Autowired
    private UserDao userDao;

    public List<User> findAllUsers() {
        return this.userDao.findAllUsers();

    }

    public User getById(Long id) {
        return this.userDao.getByPK(id);
    }

}
